@import 'theme';
:host {
  display: block;
  padding: 1rem 2rem;
}
.title {
  padding: 10px 0;
  border-bottom: 1px solid var(--main-title-hr-color);
}
.list {
  table {
    width: 100%;
    border-collapse: collapse;
    tr {
      height: 70px;
      td:first-child {
        width: 3rem;
      }
      td:nth-child(2) {
        padding-left: 1rem;
      }
      td:not(:first-child) {
        border-bottom: 1px solid var(--main-item-hr-color);
      }
    }
  }
}
.appInfo {
  display: flex;
  flex-direction: column;
  height: 48px;
  justify-content: space-around;
  .version {
    color: gray;
    font-size: 0.9rem;
  }
}
.time {
  width: 150px;
  color: gray;
}
.progressInfo {
  min-width: 200px;
  flex-shrink: 0;
  padding-top: 0.5rem;
  progress {
    width: 100%;
  }
  .speed {
    display: flex;
    justify-content: space-between;
    color: gray;
    .size {
      white-space: nowrap;
    }
  }
  .message {
    display: flex;
    justify-content: center;
    font-size: 0.8rem;
    color: gray;
  }
  .failed {
    color: red;
  }
}
.controlBtn {
  flex: 2;
  display: flex;
  justify-content: flex-end;
  @each $ctl in $control-button {
    .#{$ctl}Btn {
      width: 36px;
      height: 36px;
      padding: 0;
      background-size: 100% 100%;
      background-color: transparent !important;
      background-repeat: no-repeat;
      box-shadow: unset;
      background-position-x: 0, 36px, 36px, 36px;
      &:hover:enabled {
        background-image: var(--control-icon-#{$ctl});
        background-position-x: 36px, 0, 36px, 36px;
      }
      &:active:enabled {
        background-image: var(--control-icon-#{$ctl});
        background-position-x: 36px, 36px, 0, 36px;
      }
      &:disabled {
        background-image: var(--control-icon-#{$ctl});
        background-position-x: 36px, 36px, 36px, 0;
      }
      background-image: var(--control-icon-#{$ctl});
    }
  }
}

progress[value] {
  /* Reset the default appearance */
  -webkit-appearance: none;
  appearance: none;
  &::-webkit-progress-bar {
    height: 6px;
    border-radius: 4px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    background-color: var(--main-title-hr-color);
  }
  &::-webkit-progress-value {
    background-color: #2ca7f8;
    border: solid 1px #378cfa;
    border-radius: 4px;
  }
}
